.class public final Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;
.super Ljava/lang/Object;
.source "NetworkAwareControllerWrapper.java"

# interfaces
.implements Lcom/burstly/lib/component/IAdaptorController;


# static fields
.field static final COMPONENT_NAME:Ljava/lang/String; = "burstly"

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt;


# instance fields
.field private mController:Lcom/burstly/lib/component/IAdaptorController;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 44
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>(Lcom/burstly/lib/component/IAdaptorController;)V
    .locals 0
    .parameter "component"

    .prologue
    .line 56
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 57
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    .line 58
    return-void
.end method


# virtual methods
.method public click()V
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->click()V

    .line 63
    return-void
.end method

.method public destroy()V
    .locals 1

    .prologue
    .line 128
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->destroy()V

    .line 129
    return-void
.end method

.method public getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;
    .locals 1

    .prologue
    .line 143
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;

    move-result-object v0

    return-object v0
.end method

.method public getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;
    .locals 1

    .prologue
    .line 158
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    move-result-object v0

    return-object v0
.end method

.method public getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    return-object v0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 138
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getViewId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 133
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public hideComponent()V
    .locals 1

    .prologue
    .line 72
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->hideComponent()V

    .line 73
    return-void
.end method

.method public isPrefetchRequest()Z
    .locals 1

    .prologue
    .line 113
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->isPrefetchRequest()Z

    move-result v0

    return v0
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 148
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->pause()V

    .line 149
    return-void
.end method

.method public resume()V
    .locals 1

    .prologue
    .line 153
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->resume()V

    .line 154
    return-void
.end method

.method public setBursltlyAdListener(Lcom/burstly/lib/component/IInternalBurstlyAdListener;)V
    .locals 1
    .parameter "burstlyListener"

    .prologue
    .line 103
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setBursltlyAdListener(Lcom/burstly/lib/component/IInternalBurstlyAdListener;)V

    .line 104
    return-void
.end method

.method public setClientTargetParams(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 163
    .local p1, clientTargetParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setClientTargetParams(Ljava/util/Map;)V

    .line 164
    return-void
.end method

.method public setCustomNetworkParams(Ljava/util/Map;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 168
    .local p1, customNetworkParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setCustomNetworkParams(Ljava/util/Map;)V

    .line 169
    return-void
.end method

.method public setInterstitialMode(Z)V
    .locals 1
    .parameter "mIsInterstitial"

    .prologue
    .line 183
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setInterstitialMode(Z)V

    .line 184
    return-void
.end method

.method public setLifeCycleListener(Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;)V
    .locals 1
    .parameter "lcListener"

    .prologue
    .line 77
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setLifeCycleListener(Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;)V

    .line 78
    return-void
.end method

.method public setParent(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 1
    .parameter "parent"

    .prologue
    .line 82
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setParent(Lcom/burstly/lib/ui/BurstlyView;)V

    .line 83
    return-void
.end method

.method public setPrefetchedRequest(Z)V
    .locals 1
    .parameter "isPrefetched"

    .prologue
    .line 118
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setPrefetchedRequest(Z)V

    .line 119
    return-void
.end method

.method public setResponseSaver(Lcom/burstly/lib/persistance/ResponseSaver;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/burstly/lib/persistance/ResponseSaver",
            "<",
            "Lcom/burstly/lib/network/beans/ResponseBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 178
    .local p1, responseSaver:Lcom/burstly/lib/persistance/ResponseSaver;,"Lcom/burstly/lib/persistance/ResponseSaver<Lcom/burstly/lib/network/beans/ResponseBean;>;"
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0, p1}, Lcom/burstly/lib/component/IAdaptorController;->setResponseSaver(Lcom/burstly/lib/persistance/ResponseSaver;)V

    .line 179
    return-void
.end method

.method public showComponent()V
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->showComponent()V

    .line 88
    return-void
.end method

.method public showPrecachedAd()V
    .locals 1

    .prologue
    .line 123
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->showPrecachedAd()V

    .line 124
    return-void
.end method

.method public start()V
    .locals 4

    .prologue
    .line 92
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->isOnline()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 93
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->start()V

    .line 99
    :goto_0
    return-void

    .line 95
    :cond_0
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "Network-aware wrapper"

    const-string v2, "No network connection available. Can not start component lifecycle."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 97
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    move-result-object v0

    invoke-interface {v0}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->failedToDisplayAds()V

    goto :goto_0
.end method

.method public stop()V
    .locals 1

    .prologue
    .line 173
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-interface {v0}, Lcom/burstly/lib/component/IAdaptorController;->stop()V

    .line 174
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 108
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/NetworkAwareControllerWrapper;->mController:Lcom/burstly/lib/component/IAdaptorController;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
